<li class="row-post">
    <div class="pro-left">
        <a href="<?php echo $data->getFrontendUrl() ?>"><img src="<?php echo $data->getImageUrl('thumb') ?>"></a>
        <h3><?php echo h($data->title) ?> (<?php echo date('d M Y', $data->updated) ?>)</h3>
        <p class="word-break">
	    <?php echo h($data->content, 220) ?><br/>

	    <strong>Post type:</strong> <?php
	    switch ($data->type) {
		case Ad::TYPE_EQUIPMENT:
		    echo "Equipment";
		    break;
		case Ad::TYPE_RESUME:
		    echo "Resume";
		    break;
		case Ad::TYPE_JOB:
		    echo "Job";
		    break;
		case Ad::TYPE_SUPPLY:
		    echo "Supply";
		    break;
		case Ad::TYPE_VENDOR:
		    echo "Vendor";
		    break;
		case Ad::TYPE_TECHNICAL:
		    echo "Technical Sevices";
		    break;
		case Ad::TYPE_ADVERTISE: default :
		    echo "Advertise";
		    break;
	    }
	    ?>
            <br /><strong>Categories:</strong> <?php echo $data->mainCategory->name; ?><?php /* <a href="<?php echo $data->getTypeUrl() ?>"><?php echo h($data->getType()) ?></a> */ ?><?php
	    foreach ($data->categories as $cat) {
		echo ', ' . $cat->name;
	    }
	    ?>
        </p>
    </div>
    <div class="pro-right">
        <p><?php echo ($data->contact_state != '' ? $data->contact_state . ', ' : '') . $data->contact_country ?></p>
        <a class="btn" href="<?php echo str_replace("+", "_", $data->getFrontendUrl()) ?>">View Ads</a>
    </div>
</li>